

import {debounce} from "./Utils";

export const ImgFinishLoadMixin = {

    data:function () {

      return{

        debounce:null
      }
    },
    mounted:function () {

      this.debounce = debounce(()=>{

        this.$emit("imgFinishLoad")
      })
    },
    methods:{

      imgFinishLoad(){

        this.debounce && this.debounce()
      }
    }
}
